import { Controller, Get } from '@nestjs/common';
import { UserService } from './user.service';

import { GetUserInfo, RequrieLogin } from 'src/cu-dec';

@Controller('user')
@RequrieLogin()
export class UserController {
  constructor(private readonly userService: UserService) {}

  @Get()
  findOne(@GetUserInfo('id') id: number) {
    return this.userService.findOne(+id);
  }
}
